<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>:root选择器</title>
    <style type="text/css">
        :root{font-size: 40px;}
        h2{font-size: 20px;}
    </style>
</head>
<body>
    <h2>《赠汪伦》</h2>
    <p>李白乘舟将欲行</p>    
</body>
</html>